﻿Imports System.Xml.Serialization

<Serializable()>
Public MustInherit Class JosResponse

    ''' <summary>
    ''' 错误码
    ''' </summary>
    <XmlElement("code")>
    Property Code As String

    ''' <summary>
    ''' 错误信息
    ''' </summary>
    <XmlElement("msg")>
    Property ErrMsg As String

    Property Body As String

    Property ReqUrl As String

    ReadOnly Property IsError As Boolean
        Get
            Return Val(Code) <> 0
        End Get
    End Property

End Class